<template>
  <div class="content_box">
    <div class="lanmu_box">
      <div class="box">
        <van-tabs v-model="active" @change="tabChange">
          <van-tab :title="item.name" v-for="(item,index) in lanmu" :key="index"></van-tab>
        </van-tabs>
      </div>
    </div>
    <div class="list_box">
      <div class="box" @click="toXq">
        <div class="name_box">
          <p class="name">应许之地茶楼</p>
          <p class="date"><span>2023-01</span><van-icon color="#aaa" name="arrow" /></p>
        </div>
        <div class="nr_box">
          <div class="nr">
            <p class="title">￥60.00</p>
            <p class="text">店铺收益</p>
          </div>
          <div class="nr">
            <p class="title">80%</p>
            <p class="text">分成比例</p>
          </div>
          <div class="nr">
            <p class="title on">￥48.00</p>
            <p class="text">分成金额</p>
          </div>
        </div>
      </div>
      <div class="box">
        <div class="name_box">
          <p class="name">应许之地茶楼</p>
          <p class="date"><span>2023-01</span><van-icon color="#aaa" name="arrow" /></p>
        </div>
        <div class="nr_box">
          <div class="nr">
            <p class="title">￥60.00</p>
            <p class="text">店铺收益</p>
          </div>
          <div class="nr">
            <p class="title">80%</p>
            <p class="text">分成比例</p>
          </div>
          <div class="nr">
            <p class="title on">￥48.00</p>
            <p class="text">分成金额</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  components: {
  },
  data() {
    return{
      lanmu:[
       {name:'未出账',query:''},
       {name:'已出账',query:1},
     ],
    }
  },
  onShow() {
 
  },
  methods: {
    
    // 跳转详情
    toXq(){
      wx.navigateTo({
        url: `/pages/partner/detailed/xq/main`,
      });
    }
  },
  onHide() {},
  onLoad() {
    
  },
  onUnload() {
  },
  created() {}
};
</script>

<style lang="scss"  scoped>
.content_box {
  min-height: 100vh;
  background: #f5f5f5;  
  .lanmu_box{
    height: 88rpx;
    margin-bottom:30rpx;
    .box{
      position: fixed;
      top:0;
      width: 100%;
      z-index: 100;
      background: #fff;
    }
    /deep/ .van-tab{
      color:#999;
      font-size:30rpx;
    }
    /deep/ .van-tabs__line{
      background: #1E68FF;
    }
    /deep/ .van-tab--active{
      color:#222;
      font-weight: bold;
    }
  }
  .list_box{
    width: 92%;
    margin:0 auto;
    .box{
      background: #fff;
      padding:30rpx;
      border-radius: 8rpx;
      margin-bottom:30rpx;
      .name_box{
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom:1px solid #f5f5f5;
        padding-bottom:30rpx;
        .name{
          font-size:30rpx;
        }
        .date{
          font-size:36rpx;
          font-weight: 500;
          span{
            margin-right:20rpx;
          }
        }
      }
      .nr_box{
        display: flex;
        justify-content: space-between;
        margin-top:30rpx;
        text-align: center;
        .title{
          font-size:36rpx;
          font-weight: 500;
          margin-bottom:20rpx;
          &.on{
            color:#1E68FF;
          }
        }
        .text{
          font-size:26rpx;
          color:#666
        }
      }
    }
  }
}
</style>
